package com.university.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @Date: 2021/5/13 12:12
 * @Description:
 */
@Data
public class FoodOrder {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String username;//用户名

    private Integer foodId;//食品的id

    private Integer quantity;//购买数量

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderDate;//下单日期

}
